package com.fanhang.samples;

public class ThreadLocalService {

	private ThreadLocal<String> local = new ThreadLocal<>();
	
	private ThreadLocalDao dao = new ThreadLocalDao();
	
	public void todo(int i) {
		local.set("service");
		dao.add(i);
		dao.minus(i);
		System.out.println(local.get());
	}
	
}
